#ifndef	__TYPEDEFS_H__
#define	__TYPEDEFS_H__

#include <intrins.h>


#define DATA		data
#define PDATA		pdata
#define IDATA		idata
#define XDATA		xdata
#define CODE		code
#define CONST		code
#define CODE_P
#define FAR

//typedef	unsigned char	Register;
typedef	unsigned char	BYTE;
typedef	unsigned int	WORD;
typedef	unsigned long	DWORD;

#define	TRUE	1
#define	FALSE	0
#ifndef NULL
 #define NULL ((void *) 0)
#endif

#define ERR_SUCCESS		0
#define ERR_FAIL		1

#define ON		1
#define OFF		0

#define SET		1
#define RESET		0


//VInputStdDetectMode
#define NOINPUT	0xff

//VInputStd
#define NTSC	0			
#define PAL		1
#define SECAM	2
#define NTSC4	3
#define PALM	4
#define PALN	5
#define PAL60	6

#endif // __TYPEDEFS_H__
